import request from '@/utils/request'

// 登录相关
export function loginForm(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export const getUserInfo = (id) => {
  return request.get('/sys/profile')
}

// 修改密码
export const updatePassword = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}

